﻿using FE.EntityCore.Entity;
using System.Collections.Generic;

namespace FE.EntityCore.Service
{
    public class AttachmentService
    {
        public List<Sys_Attachment> GetAttachmentList()
        {
            var db = new SqlSugarClientBuilder().GetInstance();
            //是附件,且时间小于2天内的 SA05
            var result = db.Queryable<Sys_Attachment>().Where(it => it.SA08 == "0");

            if (result?.Count() > 0)
            {
                return result.ToList();
            }

            return null;
        }
    }
}